<#ftl strip_whitespace=true>
<#import "/template/utils.ftl" as u>
<#macro link href id="">
<link href="${u.url(href)}" rel="stylesheet" type="text/css" id="${id}"/>
</#macro>
<#macro script src>
<script src="${u.url(src)}"></script>
</#macro>
<!DOCTYPE html>
<!--
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.0.2
Version: 1.5.4
Author: KeenThemes
Website: http://www.keenthemes.com/
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8"/>
    <title>Metronic | Data Tables - Managed Datatables</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    <meta content="" name="description"/>
    <meta content="" name="author"/>
    <meta name="MobileOptimized" content="320">
    <!-- BEGIN GLOBAL MANDATORY STYLES -->
<@link href="/resources/plugins/font-awesome/css/font-awesome.min.css" />
<@link href="/resources/plugins/bootstrap/css/bootstrap.min.css" />
<@link href="/resources/plugins/uniform/css/uniform.default.css" />
    <!-- END GLOBAL MANDATORY STYLES -->
    <!-- BEGIN PAGE LEVEL STYLES -->
<@link  href="/resources/plugins/select2/select2_metro.css" />
<@link href="/resources/plugins/data-tables/DT_bootstrap.css" />
    <!-- END PAGE LEVEL STYLES -->
    <!-- BEGIN THEME STYLES -->
<@link href="/resources/css/style-metronic.css" />
<@link href="/resources/css/style.css" />
<@link href="/resources/css/style-responsive.css" />
<@link href="/resources/css/plugins.css" />
<@link href="/resources/css/themes/default.css"  id="style_color"/>
<@link href="/resources/css/custom.css" />
    <!-- END THEME STYLES -->
    <link rel="shortcut icon" href="favicon.ico"/>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
<!-- BEGIN HEADER -->
<div class="header navbar navbar-inverse navbar-fixed-top">
    <!-- BEGIN TOP NAVIGATION BAR -->
    <div class="header-inner">
        <!-- BEGIN LOGO -->
        <a class="navbar-brand" href="index.html">
            <img src="/resources/img/logo.png" alt="logo" class="img-responsive"/>
        </a>
        <!-- END LOGO -->
        <!-- BEGIN RESPONSIVE MENU TOGGLER -->
        <a href="javascript:;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <img src="/resources/img/menu-toggler.png" alt=""/>
        </a>
        <!-- END RESPONSIVE MENU TOGGLER -->
        <!-- BEGIN TOP NAVIGATION MENU -->
        <!-- END TOP NAVIGATION MENU -->
    </div>
    <!-- END TOP NAVIGATION BAR -->
</div>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
    <!-- BEGIN SIDEBAR -->
    <div class="page-sidebar navbar-collapse collapse">
        <!-- BEGIN SIDEBAR MENU -->
        <!-- END SIDEBAR MENU -->
    </div>
    <!-- END SIDEBAR -->
    <!-- BEGIN PAGE -->
    <div class="page-content">
        <!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
        <!-- /.modal -->
        <!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
        <!-- BEGIN STYLE CUSTOMIZER -->
        <!-- END BEGIN STYLE CUSTOMIZER -->
        <!-- BEGIN PAGE HEADER-->
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box light-grey">
                    <div class="portlet-title">
                        <div class="caption"><i class="fa fa-globe"></i>Managed Table</div>
                        <div class="tools">
                            <a href="javascript:;" class="collapse"></a>
                            <a href="#portlet-config" data-toggle="modal" class="config"></a>
                            <a href="javascript:;" class="reload"></a>
                            <a href="javascript:;" class="remove"></a>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <div class="table-toolbar">
                            <div class="btn-group">
                                <button id="sample_editable_1_new" class="btn green">
                                    Add New <i class="fa fa-plus"></i>
                                </button>
                            </div>
                            <div class="btn-group pull-right">
                                <button class="btn dropdown-toggle" data-toggle="dropdown">Tools <i
                                        class="fa fa-angle-down"></i>
                                </button>
                                <ul class="dropdown-menu pull-right">
                                    <li><a href="#">Print</a></li>
                                    <li><a href="#">Save as PDF</a></li>
                                    <li><a href="#">Export to Excel</a></li>
                                </ul>
                            </div>
                        </div>
                        <table class="table table-striped table-bordered table-hover" data-role="dt"
                               data-action="${u.url('/admin/users')}">
                            <thead>
                            <tr>
                                <th class="table-checkbox">
                                    <input type="checkbox" class="group-checkable"
                                            /></th>
                                <th class="sorting" map="username">Username</th>
                                <th class="sorting" map="email">Email</th>
                                <th>Points</th>
                                <th>Joined</th>
                                <th>&nbsp;</th>
                            </tr>
                            </thead>
                            <tbody>
                            <script type="text/html" id="test">
                                @{each content as user index}
                                <tr>
                                    <td><input type="checkbox"></td>
                                    <td>aaaa@{user.id};klasdf@{user.username}</td>
                                    <td>@{user.username}</td>
                                    <td>points</td>
                                    <td><a href="#">Add</a></td>
                                </tr>
                                @{/each}
                            </script>
                            </tbody>
                        </table>
                        <script type="text/html" id="pagination">
                            <div class="col-md-5 col-sm-12">
                                <div class="dataTables_info">第 @{start} 至 @{end} 条数据，共 @{total} 条</div>
                            </div>
                            <div class="col-md-7 col-sm-12">
                                <div class="dataTables_paginate paging_bootstrap">
                                    <ul class="pagination">
                                        <li class="Previous"><a href="#"><i class="fa fa-angle-left"></i></a></li>
                                        @{each pages as p }
                                        <li
                                        @{if current===p} class="active" @{/if}><a href="#">@{p}</a></li>
                                        @{/each}
                                        <li class="Next"><a href="#"><i class="fa fa-angle-right"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                        </script>
                    </div>
                </div>
                <!-- END EXAMPLE TABLE PORTLET-->
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
    <!-- END PAGE -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<div class="footer">
    <div class="footer-inner">
        2013 &copy; Metronic by keenthemes.
    </div>
    <div class="footer-tools">
			<span class="go-top">
			<i class="fa fa-angle-up"></i>
			</span>
    </div>
</div>
<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<!--[if lt IE 9]>
<@script src="/resources/plugins/respond.min.js" />
<@script src="/resources/plugins/excanvas.min.js" />
<![endif]-->
<@script src="/resources/plugins/jquery-1.10.2.min.js" />
<@script src="/resources/plugins/jquery-migrate-1.2.1.min.js" />
<@script src="/resources/plugins/bootstrap/js/bootstrap.min.js" />
<@script src="/resources/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js"  />
<@script src="/resources/plugins/jquery-slimscroll/jquery.slimscroll.min.js" />
<@script src="/resources/plugins/jquery.blockui.min.js" />
<@script src="/resources/plugins/jquery.cookie.min.js" />
<@script src="/resources/plugins/uniform/jquery.uniform.min.js" />
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<@script  src="/resources/plugins/select2/select2.min.js" />
<#--<@script  src="/resources/plugins/data-tables/jquery.dataTables.js" />-->
<#--<@script  src="/resources/plugins/data-tables/DT_bootstrap.js" />-->
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<@script src="/resources/scripts/app.js" />
<@script src="/resources/js/template.js" />
<@script src="/resources/js/template-syntax.js" />
<@script src="/resources/js/my.datatable.js" />
<script>
    jQuery(document).ready(function () {
        App.init();
    });
</script>
</body>
</html>